import Mock from 'mockjs' // 引入mockjs
 
const Random = Mock.Random // Mock.Random 是一个工具类，用于生成各种随机数据
 
let data = {
    "id":"1","name":"name","time":"2019-01-01 20:20:20","grade":"A","dev_id":"采集器","note":"缺水"
}
 
Mock.mock('/action/alarm_db_oper', 'get', data) // 根据数据模板生成模拟数据